<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
   <script>
       function show() {
           var x = 3;
           return x;
       }
       alert(show());
   </script>
</body>
</html>